#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "serial.h"
#include <QThread>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private:
    Ui::Widget *ui;
    QThread *thread;

signals:
    void sig_open();
    void sig_write(QString data);
    void sig_read(QString data);
};

#endif // WIDGET_H
